using System;
using System.Collections.Generic;
using System.Text;

namespace PSE.Framework.Service.ExceptionHandling
{
    /// <summary>
    /// Exception that is thrown by an application for business errors.
    /// </summary>
    public class GeneralException : ExceptionBase
    { 
        #region Fields

        private const int GENERIC_SINACOR_ERROR = 0;

        #endregion

        #region Constructors

        /// <summary>
        /// Construtor that will generate a simple message, with no special format.
        /// </summary>
        /// <param name="errorNumber">The error number.</param>
        public GeneralException()
            : base(GENERIC_SINACOR_ERROR)
        {
        }

        /// <summary>
        /// Construtor that will generate a simple message, with no special format.
        /// </summary>
        /// <param name="errorNumber">The error number.</param>
        public GeneralException(int errorNumber)
            : base(errorNumber)
        {
        }
        #endregion
    }
}
